package nl.ypmits.utils.as3.date.clock {
	import flash.display.DisplayObjectContainer;

	/**
	 * @author Dave Lenz
	 */
	public class ClockSkin {
		public var secondsGraphic : DisplayObjectContainer;
		public var minutesGraphic : DisplayObjectContainer;
		public var hourGraphic : DisplayObjectContainer;
		public var fontName : String;

		
		public function validateAnalogue() : Boolean {
			if( hasSecondsGraphic() && hasHourGraphic() && hasMinuteGraphic() ) return true;
			return false;
		}
		
		
		public function validateDigital() : Boolean {
			if( hasFont() ) return true;
			return false;
		}
		
		
		private function hasSecondsGraphic() : Boolean {
			if( secondsGraphic ) return true; else return false;
		}
		
		
		private function hasMinuteGraphic() : Boolean {
			if( minutesGraphic ) return true; else return false;
		}
		
		
		private function hasHourGraphic() : Boolean {
			if( hourGraphic ) return true; else return false;
		}
		
		
		private function hasFont() : Boolean {
			if( fontName ) return true; else return false;
		}
		
		
		public function dispose() : void {
			secondsGraphic = null;
			minutesGraphic = null;
			hourGraphic = null;
			fontName = null;
		}
	}
}
